package com.imooc.sell.repository;

import com.imooc.sell.dataobject.ProductInfo;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface ProductInfoRepository extends JpaRepository<ProductInfo, String> {
  /**
   * 查询上架的商品 findByProductStatus
   */
  List<ProductInfo> findByProductStatus(Integer productStatus);

}
